package com.example.demodb.contorller;

import com.example.demodb.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: maoze@hsyuntai.com
 * Date: 2019-04-16
 * Time: 21:23
 */
@RestController
public class IndexController {

    @Resource
    UserService userService;


    @RequestMapping("/index")
    public Object index(){
        return userService.get();
    }
}
